//
//  SSSColorHeader.h
//  SSSAllPeopleBenefit
//
//  Created by Darker on 2017/2/22.
//  Copyright © 2017年 Darker. All rights reserved.
//

#ifndef SSSColorHeader_h
#define SSSColorHeader_h

#pragma mark - ***** 颜色设置

/*! RGB色值 */
//#define ba_RGBAColor(R, G, B, A)      [UIColor colorWithRed:R/255.0 green:G/255.0 blue:B/255.0 alpha:A]

/*! 随机色 */
#define BARandomColor           [UIColor colorWithRed:arc4random_uniform(256)%255.0 green:arc4random_uniform(256)%255.0 blue:arc4random_uniform(256)%255.0 alpha:1.0]
#define BA_ColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define BA_BGClearColor         [UIColor colorWithRed:0.1f green:0.1f blue:0.1f alpha:0.7f]
#define ZCPCOLOR(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
/*** 颜色 ***/
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define ZDCommonBgColor UIColorFromRGB(0xe8e9ea)
#define ZDCommonBlueColor UIColorFromRGB(0x286de0)

//背景颜色
#define BACKGROUNDCOLOR [UIColor colorWithRed:246 / 255.0f green:246 / 255.0f blue:246 / 255.0f alpha:1]

#define ThemeGreenColor [UIColor colorWithHex:@"40B87B"]
#define ThemeGrayColor [UIColor colorWithHex:@"BBBBBB"]
#define ThemeBlackColor [UIColor colorWithHex:@"6D6D6D"]
#define NormolBlurColor [UIColor colorWithHex:@"FFFF" alpha:0.3];//模糊色
//static inline UIColor *ba_RGBAColor(float r,float g,float b, float a) { return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a];}

#define RandomColor  [UIColor colorWithRed:arc4random_uniform(255)/255.0 green:arc4random_uniform(255)/255.0 blue:arc4random_uniform(255)/255.0 alpha:1];

//
///*! 主题微信绿 */
//#define ZD_WeXin_greenColor      ba_RGBAColor(0, 190, 12, 1)
//
///*! 白色 1.0 white */
//#define ZD_White_Color          ba_RGBAColor(255, 255, 255, 1)
//
///*! 红色 1.0, 0.0, 0.0 RGB */
//#define ZD_Red_Color            ba_RGBAColor(255, 0, 0, 1)
//
///*! 黄色 1.0, 1.0, 0.0 RGB */
//#define ZD_Yellow_Color         ba_RGBAColor(255, 255, 0, 1)
//
///*! 绿色 0.0, 1.0, 0.0 RGB */
//#define ZD_Green_Color          ba_RGBAColor(0, 255, 0, 1)
//
///*! 蓝色 0.0, 0.0, 1.0 RGB */
//#define ZD_Blue_Color           ba_RGBAColor(0, 0, 255, 1)
//
///*! 无色 0.0 white, 0.0 alpha */
//#define ZD_Clear_Color          ba_RGBAColor(0, 0, 0, 0)
//
///*! 橙色 1.0, 0.5, 0.0 RGB */
//#define ZD_Orange_Color         ba_RGBAColor(255, 255, 0, 1)
//
///*! 黑色 0.0 white */
//#define ZD_Black_Color          ba_RGBAColor(0, 0, 0, 1)
//
///*! 浅灰色 0.667 white */
//#define ZD_LightGray_Color      ba_RGBAColor(255, 255, 255, 0.667)
//
///*! 灰色 0.5 white */
//#define ZD_Gray_Color           [UIColor grayColor]
//
///*! 青色 0.0, 1.0, 1.0 RGB */
//#define ZD_Cyan_Color           [UIColor cyanColor]
//
///*! 深灰色 0.333 white */
//#define ZD_DarkGray_Color       [UIColor darkGrayColor]
//
///*! 红褐色 1.0, 0.0, 1.0 RGB */
//#define ZD_Magenta_Color        [UIColor magentaColor]
//
///*! 棕色 0.6, 0.4, 0.2 RGB */
//#define ZD_Brown_Color          [UIColor brownColor]
//
///*! 红褐色 1.0, 0.0, 1.0 RGB */
//#define ZD_Magenta_Color        [UIColor magentaColor]
//
///*! 紫色 0.5, 0.0, 0.5 RGB */
//#define ZD_Purple_Color         [UIColor purpleColor]

#define UIColorFromHexA(hexValue, a)     [UIColor colorWithRed:(((hexValue & 0xFF0000) >> 16))/255.0f green:(((hexValue & 0xFF00) >> 8))/255.0f blue:((hexValue & 0xFF))/255.0f alpha:a]
#define UIColorFromHex(hexValue)        UIColorFromHexA(hexValue, 1.0f)

//UI颜色控制
#define kUIToneBackgroundColor UIColorFromHex(0x022333) //UI整体背景色调 与文字颜色一一对应
#define kUIToneTextColor UIColorFromHex(0xffffff) //UI整体文字色调 与背景颜色对应
#define kStatusBarStyle UIStatusBarStyleLightContent //状态栏样式
#define kViewBackgroundColor UIColorFromHex(0xf5f5f5) //界面View背景颜色



#endif /* SSSColorHeader_h */
